package com.qing.cheng.dto;




public class ExceptionRes extends ResponseMessage {

    private int code;
    private String message;
    private static final String SYSTEM_ERROR = "系统异常，请稍后再试！";
    private static final String NO_USER = "系统中没有此人";
    private static final String ERROR_NUM = "验证码错误，请稍后重试！";

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static ExceptionRes Fail(Exception e) {

        ExceptionRes exceptionRes = new ExceptionRes();
        exceptionRes.setCode(500);
        exceptionRes.setMessage("系统异常");
        return exceptionRes;

    }

}
